package org.example.feign;

import org.example.pojo.Room;
import org.example.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "room-service",path = "/room")
public interface RoomFeign {
    //    房间列表
    @GetMapping("/listRoom")
    public Result listRoom();
    //    房间的逻辑删除
    @GetMapping("/del")
    public Result del(@RequestParam("rid") Integer rid);
//    添加
    @PostMapping("/add")
    public Boolean add(@RequestBody Room room);


}
